/*
 * Copyright (c) 2011.
 *     This program is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 *
 *     You should have received a copy of the GNU General Public License
 *     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.graphoman.model;

import java.awt.*;

/**
 * Created by IntelliJ IDEA.
 * User: daniil
 * Date: 11.10.11
 * Time: 9:32
 * To change this template use File | Settings | File Templates.
 */
public class State extends Point {
    public String id;
    public String name;
    public int diameter = 50;
    public Color color;

    public State() {
        super();
        this.color = Color.decode("0xC2E0FF");
        this.id = "";
        this.name = "";
    }

    public State(String id, String name, int x, int y) {
        super(x, y);
        this.id = id;
        this.name = name;
        this.color = Color.decode("0xC2E0FF");
    }

    @Override
    public String toString() {
        return name + " " + id;
    }
}
